﻿
#include <iostream>
#include<stdio.h>

int add(int a, int b)
{
	return a + b;
}
typedef int (*pFunc)(int, int);
int main()
{
	int (*p)(int, int);
	p = add;
	int result = p(1, 2);
	printf("%d\n", result);

	pFunc p1 = add;
	int result1 = p1(1, 2);
	printf("%d\n", result1);

	return 0;
}

